package com.sanjiayi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanjiayi.dto.NearbyUserDTO;
import com.sanjiayi.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    
    /**
     * 更新用户位置信息
     */
    void updateLocation(NearbyUserDTO nearbyUserDTO);

    /**
     * 查询附近的用户
     */
    List<User> findNearbyUsers(NearbyUserDTO nearbyUserDTO);
} 